package com.ih.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_history")
//历史表
public class History {
    private  Integer hid;//历史id
    @TableField(exist = false)  //此注解的作用为：当此字段用到时正常用，用不到时，自动屏蔽
    private Customer customer;//关联客户
    private Integer workerId;
    @TableField(exist = false)
    private Worker worker;
    @DateTimeFormat(pattern = "yyyy-MM-dd") //时间格式化
    private Date sendWaterTime;//送水时间
    private Integer sendWaterCount;// 送水数量
}
